{%set sample=sample_list|first%}
{% extends '测序数据质控/qc.html'%}
{%block background%}
                    <h1>CNV变异统计</h1>
                    <p>
                        拷贝数变异（CNV）由基因组重排导致，一般指长度1kb以上的基因组大片段拷贝数增加或者减少，主要表现为亚显微水平的缺失和重复，会影响到基因组的稳定性、基因的功能。
                    </p>
{%endblock%}
{%block parameter%}
                    <h3>分析软件</h3>
                    <p>分析软件：CNVnator</p>
{%endblock%}
              
{%block tab%}
                        <ul class="layui-tab-title">
                            <li class='layui-this'>CNV数据统计</li><li>CNV长度分布</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div id="CNV数据统计" class="layui-tab-item layui-show">
                                <table class="layui-table" lay-filter="demo">
                                    <thead>
                                        <tr>
                                        <th lay-data={align:"center",width:150,sort:true,field:"sample"}>sample</th>
                                        {%for col in dict_sub[sample]%}
                                        <th lay-data={align:"center",width:150,sort:true,field:"{{col[0]}}"}>{{col[0]}}</th>
                                        {%endfor%}
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for key in dict_sub %}
                                        <tr>
                                        <td>{{ key }}</td>
                                        {%for col in dict_sub[key]%}
                                        <td>{{ col[1] }}</td>
                                        {%endfor%}
                                        </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                            <div id="CNV长度分布" class="layui-tab-item ">
                                <div class="layui-row layui-col-space20">
                                    <div class="layui-col-xs12">
                                        <form class="layui-form">
                                            <select id='tab2' lay-filter='tab2'>
                                                {% for key in dict_sub %}
                                                <option value={{key}} name={{key}} selected>{{key}}</option>
                                                {% endfor %}
                                            </select> 
                                        </form>  
                                    </div> 
                                </div>
                                    {% for key in dict_sub %}
                                    <div class="layui-row layui-col-space20">
                                        <div class="layui-col-x12">                                        
                                            <div id='tab2-{{key}}' class='tab2-quater'>
                                                <div class="layui-col-xs12" >
                                                    <label >{{key}} CNV长度小提琴图：</label>
                                                    <img style="width:50%;margin-top: 25px;margin-bottom: 50px;margin-right: auto;margin-left: auto;display: block" src="../../6.CNV/{{key}}/CNV_distribution.png"/>
                                                </div>  
                                            </div>                                   
                                        </div>  
                                    </div>                                                 
                                    {% endfor %}  
                                    <div>
                                        <p>注： 横坐标表示Deletion/Duplication类型；纵坐标表示CNV的长度。</p>
                                    </div>   
                                </div>
                            </div>                 
                        </div>
{%endblock%}
{%block js%}
<script>
table_function();
tab2();
icon_append();
</script>
{%endblock%}
</body>
</html>